473,418 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

Controlling the Vertical Scrollbar of a Select/Combo Box

RamananKalirajan
608 512MB
Hi All,
I have this question for a long time. I googled out but no use. I want to have my vertical scrollbar shown after my 5 options are shown. I dont want to use multipe or size. Since it makes the select as a list box. Any Solutions or suggestions would be helpful...

Thanks and Regards
Ramanan Kalirajan
Jan 25 '10 #1
5 5455
Dormilich
8,658 Expert Mod 8TB
I want to have my vertical scrollbar shown after my 5 options are shown.
how do I have to understand that?
Jan 25 '10 #2
RamananKalirajan
608 512MB
Suppose I have a select with 100 option, when i click the drop image over there, only 5 options should be viewable for me, to view the rest i have to scroll. But the default scrollbar cant be controlled. This is my problem

Thanks and Regards
Ramanan Kalirajan
Jan 25 '10 #3
In that scenario, why don't you just adjust the contents of the select?
Jan 25 '10 #4
RamananKalirajan
608 512MB
laztheloser,
Can you elaborate your point?

Thanks and Regards
Ramanan Kalirajan
Jan 26 '10 #5
When your image is clicked, you could recreate all the options of your select. Put the 5 you want at the top, and make sure the top one is selected. Then pad the select box with some empty options, then add in the rest. The advantage of using this method is that it's still an HTML box and it's really easy - you're just modifying the innerHTML of a select box, after all! The disadvantages are that 1)Different browsers have different scroll-bar thresh-holds, but the distinction should still be clear to the user, and 2)depending on how many hundreds of options you have it could be quite slow. You could get around this by pre-generating the code for the options when the image is clicked.

Or you could just use a script to simulate a select, of course! You'll find several if you google for them, but the basic idea is to have a popup scrollable div layer underneath your "field".
Jan 26 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Don Schneider | last post by:
I tried to setup a frameset which consists of 4 different subframes. Each of these subframes should fetch a different web page from the internet and display it completely (!). BUT: the vertical...
7
by: Barbara de Zoete | last post by:
On one of my pages http://home.wanadoo.nl/b.de.zoete/html/tekeningen.html I have a div containing thumbnails (who ever came up with that word?) to select a larger view of a picture. The div is...
3
by: Scott M | last post by:
Hi, I am currently trying to write a simple game using vb.net the form I am working on is 800*600 (this is set as the maximum size) and autoscroll is set to true. The user moves around the...
4
by: Rob T. | last post by:
I am using a div tag to make an element that contains some text. I have specified overflow: auto; in my stylesheet. If I use font-size/line-height to specify the font information I get a vertical...
3
by: buht | last post by:
Hello Everyone, Fairly new to c# here and have a question regarding scrollbars, particularly a vertical scrollbar. It looks like my options are restricted for the textbox scrollbars being...
0
by: Gene Hubert | last post by:
I've got two treeviews side by side on a panel on a form. They each have about 20 nodes in them. The treeview on the right has a vertical scrollbar. The treeview on the left needs a vertical...
1
by: SJ | last post by:
Is it possible to have a Listbox with no scrollbar? I have 3 items in my listbox, and I have the Rows property set to 3. It still shows me the scrollbar. Any way to get rid of the vertical...
1
by: platoon1sc | last post by:
Hi guys.I have a problem with Internet Explorer in my web-application. I have a vertical scrollbar into my jsps but firefox show the vertical srollbar, but IE doesn't. IE show a blank space where...
1
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.